package com.museum.controller.api;

import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "短信验证码服务")
public interface SMSAPI {
    /**
     * 短信发送服务
     *
     * @return
     */
    @PostMapping("/registerSend")
    @ApiOperation("注册发送短信")
    BaseResponse<JSONObject> registerSend(@ApiParam(name = "phone",value = "移动联通都可！Post传参") @RequestParam("phone") String phone);
    /**
     * 短信发送服务
     *
     * @return
     */
    @PostMapping("/loginSend")
    @ApiOperation("登陆发送短信")
    BaseResponse<JSONObject> loginSend(@ApiParam(name = "phone",value = "移动联通都可！Post传参")@RequestParam("phone") String phone);

}
